#ifndef __DRV_ADC_H
#define __DRV_ADC_H

#define VREF                    (3.3)

#define ADC_INSTANCE            ADC1
#define ADC_CH                  3u /* PA3 */
#define ADC_CLK_EN()            RCC_EnableAPB2Periphs(RCC_APB2_PERIPH_ADC1, true)

#define ADC_PIN                 GPIO_PIN_3
#define ADC_PORT                GPIOA
#define ADC_GPIO_CLK_EN()       RCC_EnableAHB1Periphs(RCC_AHB1_PERIPH_GPIOA, true)

void Drv_ADC_Init(void);
unsigned int Drv_ADC_GetValue(void);
float Drv_ADC_GetAnalogValue(void);

#endif /* __DRV_ADC_H */
